﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>客户历史</title>
    <#--freemarker没有上下文概念,使用其他路径去找模板文件-->
    <#include "../common/link.ftl">

</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
    <#include "../common/navbar.ftl">
    <!--菜单回显 c:set定义变量 menu.ftl文件获取值,并设置菜单高亮效果-->
    <#--<c:set var="currentMenu" value="customerTransfer"/>-->
    <#assign currentMenu="customerTransfer"/>
    <#include "../common/menu.ftl">
    <div class="content-wrapper">
        <section class="content-header">
            <h1>移交历史</h1>
        </section>
        <section class="content">
            <div class="box">
                <!--高级查询--->
                <form class="form-inline" id="searchForm" action="/customerTransfer/list.do" method="post">
                    <input type="hidden" name="currentPage" id="currentPage" value="1">
                    <!--管理员和经理才能看到该下拉框-->
                    <@shiro.hasAnyRoles name="admin,Market_Manager">
                    <div class="form-group">
                        <label for="keyword">关键字:</label>
                        <input type="text" class="form-control" id="keyword" name="keyword" value="${qo.keyword!}" placeholder="请输入姓名/邮箱">
                    </div>
                        <button id="btn_query" class="btn btn-primary" style="margin: 10px">
                            <span class="glyphicon glyphicon-search"></span> 查询</button>
                    </@shiro.hasAnyRoles>
                </form>
                <!--编写内容-->
                <div class="box-body table-responsive no-padding ">
                    <table class="table table-hover table-bordered">
                        <tr>
                            <th>编号</th>
                            <th>客户姓名</th>
                            <th>操作日期</th>
                            <th>操作人</th>
                            <th>旧营销人员</th>
                            <th>新营销人员</th>
                            <th>移交原因</th>
                        </tr>
                        <#list pageInfo.list as customerTransfer>
                            <tr>
                                <td>${customerTransfer_index+1}</td>
                                <td>${(customerTransfer.customer.name)!}</td>
                                <td>${(customerTransfer.operateTime?string('yyyy-MM-dd'))!}</td>
                                <td>${(customerTransfer.operator.name)!}</td>
                                <td>${(customerTransfer.oldSeller.name)!}</td>
                                <td>${(customerTransfer.newSeller.name)!}</td>
                                <td>${(customerTransfer.reason)!}</td>
                            </tr>
                        </#list>
                    </table>
                    <!--分页-->
                    <#include "../common/page.ftl">
                </div>
            </div>
        </section>
    </div>
    <#include "../common/footer.ftl">
</div>
</body>
</html>
